package com.ruoyi.hqfinance.service.impl;

import com.ruoyi.hqfinance.domain.HqPolicyType;
import com.ruoyi.hqfinance.mapper.HqPolicyTypeMapper;
import com.ruoyi.hqfinance.service.HqPolicyTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HqPolicyTypeServiceImpl implements HqPolicyTypeService {
    @Autowired
    private HqPolicyTypeMapper hqPolicyTypeMapper;
    @Override
    public List<HqPolicyType> selectAll() {
        return hqPolicyTypeMapper.selectAll();
    }

    @Override
    public Boolean insert(HqPolicyType hqPolicyType) {
        return hqPolicyTypeMapper.insert(hqPolicyType);
    }

    @Override
    public Boolean update(HqPolicyType hqPolicyType) {
        return hqPolicyTypeMapper.update(hqPolicyType);
    }

    @Override
    public Boolean deleteById(Integer id) {
        return hqPolicyTypeMapper.deleteById(id);
    }
}
